<template>
  <div class="userOnlineHistry">
    <user-online-histry-top />
    <user-online-histry-content />
    <user-online-histry-footer class="d-none d-md-block mt-2" />
    <!-- 定义移动端脚页 -->
    <div class="d-block d-md-none">
      <footer-text-s-m />
      <mobile-banner /> 
    </div>
  </div>
</template>

<script>
  import UserOnlineHistryTop from './UserOnlineHistryComponents/UserOnlineHistryTop'
  import UserOnlineHistryContent from './UserOnlineHistryComponents/UserOnlineHistryContent';
  import UserOnlineHistryFooter from './UserOnlineHistryComponents/UserOnlineHistryFooter';
  import FooterTextSM from 'components/FooterText/FooterTextSM.vue'
  import MobileBanner from 'components/Mobile/MobileBanner.vue'

  export default {
    name: 'UserOnlineHistry',
    components: {
      UserOnlineHistryTop,
      UserOnlineHistryContent,
      UserOnlineHistryFooter,
      FooterTextSM,
      MobileBanner
    },
    data () {
      return {

      }
    },
    // 在组件渲染前更改是否刷新书籍页的判断值
    beforeRouteEnter(to, from, next) {
      localStorage.setItem('bannerFlag', true);
      next();
    }
  }

</script>

<style>
  body {
    background-color: rgb(240, 240, 240);
  }
</style>